package ye.guo.huang.easypoidemooo1.easypoidemooo1.model;


import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import ye.guo.huang.easypoidemooo1.easypoidemooo1.enums.Sex;
import ye.guo.huang.easypoidemooo1.easypoidemooo1.enums.StatusEnum;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EnumEntity {

    @Excel(name ="名字")
    private String name;
    @Excel(name ="性别")
    private Sex sex; //第一种
    @Excel(name ="基础状态" )
    private StatusEnum baseStatus; //第二种
    @Excel(name ="状态" , enumExportField = "message",
            enumImportMethod = "getByMessage")
    private StatusEnum status;//第三种

}
